package ly.gupao.edu.designPattern.prototype;

import java.io.Serializable;

/**
 * 创建一个邮件模板的实体，也要实例化clonable的接口
 */
public class MailTemplate implements Cloneable, Serializable{

    private String title;

    public MailTemplate(String title){
        this.title = title;
    }


    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    public String toString() {
        return "MailTemplate{" +
                "title='" + title + '\'' +
                '}';
    }
}
